package com.edunera.connection;

import android.content.Context;
import com.edunera.R;
import com.edunera.models.edu_courses;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Soyhan
 * Date: 12.06.2013
 * Time: 22:03
 * To change this template use File | Settings | File Templates.
 */
public abstract class TaskGetCourseDetail extends BaseTask {
    String userDeviceId;
    public boolean isConnected;
    public edu_courses edu_course;
    public String courseId;
    public TaskGetCourseDetail(Context context, String userDeviceId,String courseId) {
        super(context, R.string.loading);
        this.userDeviceId = userDeviceId;
        this.courseId=courseId;
    }



    @Override
    public void doTask() {
        this.edu_course=edu_courses.getCourseById(courseId,userDeviceId);
    }

    @Override
    public abstract void onComplete();
}
